<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

// 小程序商城接口
Route::group(['prefix'=>'api'], function (){
    // 获取所有的轮播图
    Route::get("/getAllRotations", "Home\RotationsController@getAllRotations");

    // 获取分类
    Route::get("/getCategory", "Home\CategoryController@getCategory");
});

